﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PdfLibrary
{
    public class PdfNull : IPdfObject
    {
        public bool LoadFromReader(PdfReader reader, bool throwException)
        {
            var result = reader.TryReadToken("null");

            if (!result && throwException)
                throw new PdfParsingException(reader, "PdfNull not found!");

            return result;
        }
    }
}